package com.party.core.dao.read.member;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.member.MemberExternalApp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * 会员第三方应用关系写入
 * Created by wei.li.
 *
 * @date 2017/12/8 0008
 * @time 9:35
 */
@Repository
public interface MemberExternalAppReadDao extends BaseReadDao<MemberExternalApp> {

    /**
     * 根据会员和配置类型查询
     *
     * @param memberId 会员编号
     * @param deployType 配置类型
     * @return 第三方配置关系
     */
    MemberExternalApp findByMemberIdAndDeployType(@Param(value = "memberId") String memberId,
                                                  @Param(value = "deployType") Integer deployType);

    MemberExternalApp findByAppidAndDeployType(@Param(value = "appid") String appid,
                                               @Param(value = "deployType") Integer deployType);
}
